package com.techysky.repository;

import java.io.Serializable;
import java.util.List;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import com.techysky.entity.QuestionModel;

public interface QuestionModelRepository extends CoreRepository<QuestionModel, Serializable> {
	@Query(value="select id,model_dm_code,model_id,question_id from sys_question_model  where question_id=?",nativeQuery=true)
	public List<QuestionModel> findModelByQuestionId(String questionId);
	@Modifying
	@Query(value="delete from sys_question_model  where question_id=?",nativeQuery=true)
	public void deleteModelByQuestionId(String questionId);
}
